<%--
    Document   : menu_ngang
    Created on : Apr 17, 2013, 4:13:29 PM
    Author     : TNT
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="common.jsp" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
       
        <style type="text/css">
            #b{
                background: #9F2D0B;
                color: white;
                font-family: sans-serif;
                text-align: center;
                text-decoration: none;
                alignment-baseline: middle;
                display: block;
                height: 30px;
                padding-top: 10px;
                
            
            }
            #b:hover{
                background: #9C5038;
                color:white;
                font-weight: bold;
                text-decoration: none;
                text-align: center;
            }           
            #d{
                background: #9F2D0B;
                
            }	
            #d:hover{
                background: #FFFF00;
            }
            
        </style>
    </head>
    <body>
        
  <%
      String user=getVal((String)session.getValue("username"),"");
	if(!(user.equals("")|| user.equals("0") || user.equals("-1")|| user.equals("-2"))) {
             String name = getVal((String)session.getValue("name"), "");
             
            out.print("<table width='1024' border='0' align='center' bgcolor='#9F2D0B' >");
            out.print("<tr>");
            
            out.print("<td bgcolor='#9F2D0B' width='1024' align='center' colspan='5' style='font-weight:bold ; color:#9F2D0B;font-size:20px '>");
	 out.print("QUẢN LÝ WEBSITE");
	 out.print("</td>");
   out.print("</tr>");
   out.print("<tr>");
     out.print("<td width='200'><a   id ='c' href='index.jsp'>Trang chủ</a></td>");
     out.print("<td width='200'><a   id ='c' href='productmanager.jsp'>Quản lý sản phẩm</a></td>");
     out.print("<td width='200'><a   id ='c' href='customermanager.jsp'>Quản lý khách hàng</a></td>");
     out.print("<td width='200'><a   id ='c' href='adsmanager.jsp'>Quản lý quảng cáo</a></td>");
     out.print("<td width='224'><div style='color:#9F2D0B'>Xin chào "+name+"</div><div><a  id = 'd' href = 'logout.jsp' >Đăng xuất</a></div></td>");
   out.print("</tr>");
    out.print("</table>"); 
        }
        else{
            //Background Color
             out.print("<table width='1024' border='0' align='center' bgcolor='#9F2D0B' >");        
             out.print("<tr>");
             out.print("<td width='150'><a   id ='b' href='index.jsp'>Trang chủ</a></td>");
             out.print("<td width='150'><a   id ='b' href='search.jsp'>Tìm kiếm</a></td>");
             out.print("<td width='150'><a   id ='b' href='contact.jsp'>Liên hệ</a></td>");
             out.print("<td width='150'><a   id ='b' href='help.jsp'>Trợ giúp</a></td>");
             out.print("<td width='150'><a   id ='b' href='admin.jsp'>Quản lý</a></td>");
             out.print("<td width='274'>");
             pageContext.include("search_form.jsp");
             out.print("</td>");
             out.print("</tr>");
             out.print("</table>");
        }
  %>
    </body>
</html>
